<!DOCTYPE html>
<html>

<head>
    <meta name="layout" content="main" />
    <g:set var="entityName" value="${message(code: 'roleMenu.label', default: 'RoleMenu')}" />
    <title><g:message code="default.create.label" args="[entityName]" /></title>
</head>

<body class="fixed-navbar fixed-sidebar">
<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li>贷款管理系统</li>
                    <li>
                        <g:link controller="RoleMenu" action="index" params="[menu: this.roleMenu?.menu.id]">角色菜单管理</g:link>
                    </li>
                    <li class="active">
                        <span>修改角色菜单</span>
                    </li>
                </ol>
            </div>
            <h2 class="font-light m-b-xs">
                角色菜单管理
            </h2>
        </div>
    </div>
</div>
<div class="content animate-panel">
    <div class="row">
        <div class="hpanel hblue">
            <div class="panel-heading">
                修改角色菜单
            </div>
            <div class="panel-body">
                <g:form action="save" class="form-horizontal">
		    <g:hiddenField name="menu" value="${this.roleMenu.menu.id}" />
                    <g:if test="${flash.message}">
                        <div class="message" role="status">${flash.message}</div>
                    </g:if>
                    <g:hasErrors bean="${this.roleMenu}">
                        <ul class="errors" role="alert">
                            <g:eachError bean="${this.roleMenu}" var="error">
                                <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>>
                                    <g:message error="${error}" />
                                </li>
                            </g:eachError>
                        </ul>
                    </g:hasErrors>
                    <div class="form-group">
                        <label class="col-md-3 control-label">角色名称</label>
                        <div class="col-md-3">
			    <g:select name="role"
				from="${com.next.Role?.findAll()}"
				value="${role?.id}"
				optionKey="id"
				optionValue="description" />
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                   
                    <div class="form-group">
                        <div class="col-md-3 col-md-offset-3">
                            <g:submitButton class="btn btn-info" name="update" value="保存" />
                        </div>
                    </div>
                </g:form>
            </div>
        </div>
    </div>
</div>
</body>

</html>
